<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="yjhcList" title="原材料进耗存" actionUrl="inventoryMinidaoController.do?y_datagrid"  idField="id"  fit="true" queryMode="group" autoLoadData="false" pagination="false"  >
   <t:dgCol title="编号" field="id" hidden="false" ></t:dgCol>
   <t:dgCol title="日期" field="FDate"  hidden="false" formatter="yyyy-MM"  isDate="true" query="true" ></t:dgCol>
   <t:dgCol title="物料类别2" field="FName2" ></t:dgCol>
   <t:dgCol title="期初结存数量" field="FBegQty" ></t:dgCol>
   <t:dgCol title="期初结存单价" field="FBegPrice" ></t:dgCol>
   <t:dgCol title="期初结存金额" field="FBegBal" ></t:dgCol>
   <t:dgCol title="本期收入数量" field="FInQty" ></t:dgCol>
   <t:dgCol title="本期收入单价" field="FInPrice" ></t:dgCol>
   <t:dgCol title="本期收入金额" field="FInAmount" ></t:dgCol>
   <t:dgCol title="本期发出数量" field="FOutQty" ></t:dgCol>
   <t:dgCol title="本期发出单价" field="FOutPrice" ></t:dgCol>
   <t:dgCol title="本期发出金额" field="FOutAmount" ></t:dgCol>
   <t:dgCol title="期末结存数量" field="FEndQty" ></t:dgCol>
   <t:dgCol title="期末结存单价" field="FEndPrice" ></t:dgCol>
   <t:dgCol title="期末结存金额" field="FEndAmount" ></t:dgCol>
   <t:dgToolBar title="导出"  icon="icon-print"    onclick="export2()"   operationCode="export"></t:dgToolBar>
  </t:datagrid>
  </div>
</div>


<script type="text/javascript" charset="utf-8">
	/*
	 *	excel导出
	 */
	function export2() {
		export1("inventoryMinidaoController.do?export_yjhc","yjhcList");
	}
	
</script>

